package com.fox0g.mapper;

import com.fox0g.pojo.Ysjrepeat;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author 86176
* @description 针对表【ysjrepeat(饮水机)】的数据库操作Mapper
* @createDate 2024-07-06 16:57:16
* @Entity com.fox0g.pojo.Ysjrepeat
*/
@Mapper
public interface YsjrepeatMapper extends BaseMapper<Ysjrepeat> {
    @Insert("insert into test.ysjrepeat(ysjid,stuid,ysl,create_time)" +
            " values (#{ysjid},#{stuid},#{ysl},#{createTime})")
    int insert(Ysjrepeat ysjrepeat);

    @Select("select ysjid,stuid,ysl,create_time from test.ysjrepeat")
    List<Ysjrepeat> YsjallData();



}




